package com.oracle.feign;

import com.oracle.application.vo.R;
import com.oracle.failback.FailBackVo;
import com.oracle.feign.vo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "BookStore-Product-Server",path = "/product",fallbackFactory = FailBackVo.class)
public interface CartFeign {

        @RequestMapping("/getProductById")
        public R<Product> getProductById(@RequestParam("id") Integer id);


}
